$(()=>{

    $("#addrAdd").click(function (){
        console.log("111")
        let receiver = $("#receiver").val();
        let receiverPhone = $("#receiverPhone").val();
        let province = $("#province").val();
        let city = $("#city").val();
        let area = $("#area").val();
        let street = $("#street").val();
        let addrDetail = $("#addrDetail").val();
        let url = ctx + "/personal/add1rAdd";
        $.ajax({
            url,
            method:"post",
            dataType:"json",
            data:{
                receiver,
                receiverPhone,
                province,
                city,
                area,
                street,
                addrDetail
            },success(resp){
                if (resp.success){
                    layer.msg("添加成功!")
                    setTimeout(function (){
                        window.top.location.reload();
                    },1000)
                }else{
                    layer.msg("添加失败,请联系客服或稍后再试");
                }
            }
        })
    })



})